/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.thinkgem.jeesite.modules.order.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.thinkgem.jeesite.common.persistence.BaseDao;
import com.thinkgem.jeesite.common.persistence.BaseDaoImpl;
import com.thinkgem.jeesite.modules.order.entity.FaHuoDan;

/**
 * 发货单DAO接口
 * @author 李忠
 * @version 2013-07-28
 */
public interface FaHuoDanDao extends FaHuoDanDaoCustom, CrudRepository<FaHuoDan, Long> {

	@Modifying
	@Query("update FaHuoDan set delFlag='" + FaHuoDan.DEL_FLAG_DELETE + "' where id = ?1")
	public int deleteById(Long id);
	
}

/**
 * DAO自定义接口
 * @author 李忠
 */
interface FaHuoDanDaoCustom extends BaseDao<FaHuoDan> {

}

/**
 * DAO自定义接口实现
 * @author 李忠
 */
@Component
class FaHuoDanDaoImpl extends BaseDaoImpl<FaHuoDan> implements FaHuoDanDaoCustom {

}
